package com.hzit.client;

import com.hzit.entity.User;
import com.hzit.util.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Slf4j

public class UserClientHandler implements UserClient{
    @Override
    public R<List<User>> list() {

        log.info("访问用户列表失败！");
        return R.fail("访问用户列表失败！");
    }

    @Override
    public R getPort(){
        log.info("访问用户端口失败！");
        return R.fail("访问用户服务端口失败！");
    }
}
